package com.framework.pojo;

import java.io.Serializable;

/**
 * 用户表
 * @author Administrator
 */
public class User implements Serializable {
	
	private static final long serialVersionUID = -3786438616782825741L;
	
	private String id;				// 用户编号
	private String account;			// 用户账号 与 用户id相同，具有唯一性。
	private String username;		// 姓名
	private String password;		// 密码
	private String description;		// 描述
	private int enabled = 0;		// 是否启用.  0: 禁用; 1: 正常
	private int isSys = 0;			// 是否为超级用户.   0: 非; 1: 是
	
	public User() {
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getEnabled() {
		return enabled;
	}

	public void setEnabled(int enabled) {
		this.enabled = enabled;
	}

	public int getIsSys() {
		return isSys;
	}

	public void setIsSys(int isSys) {
		this.isSys = isSys;
	}
	
	public Boolean enabled2Boolean() {
		
		if (enabled == 1) {
			return true;
		}
		else {
			return false;
		}
	}
	
	public Boolean isSys2Boolean() {
		
		if (isSys == 1) {
			return true;
		}
		else {
			return false;
		}
	}
	
}
